package org.brisling.util;


public class LongUtil {
	
	public LongUtil(){};
	
	public static Long getLongValue(String longVal,Long defaultVal){
		
		Long _longVal = defaultVal;
		
		if(longVal!=null){ 
			try{
				_longVal = Long.parseLong(longVal);
			}catch(Exception e){
				System.out.println(" Execption for parse Long value -------");
			}
			
		}
		
		return _longVal;
	}
	
	public static Integer getIntValue(String longVal,Integer defaultVal){
		
		Integer _longVal = defaultVal;
		
		if(longVal!=null){ 
			try{
				_longVal = Integer.parseInt(longVal);
			}catch(Exception e){
				System.out.println(" Execption for parse Long value -------");
			}
			
		}
		
		return _longVal;
	}

}
